package model;

import java.io.Serializable;

import javax.persistence.*;


/**
 * The persistent class for the techticket database table.
 * 
 */
@Entity
@NamedQuery(name="Techticket.findAll", query="SELECT t FROM Techticket t")
public class Techticket extends Ticket implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(nullable=false)
	private String problemtype;

	//bi-directional many-to-one association to Techresource
	@ManyToOne
	@JoinColumn(name="idResource")
	private Techresource techresource;

	//bi-directional one-to-one association to Ticket

	public Techticket() {
	}

	public String getProblemtype() {
		return this.problemtype;
	}

	public void setProblemtype(String problemtype) {
		this.problemtype = problemtype;
	}

	public Techresource getTechresource() {
		return this.techresource;
	}

	public void setTechresource(Techresource techresource) {
		this.techresource = techresource;
	}

}